

package com.grj.park.controller;


import com.grj.park.common.R;
import com.grj.park.domain.ChargingTransactions;
import com.grj.park.service.ChargingTransactionsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequiredArgsConstructor
@RequestMapping("transactions")
public class ChargingTransactionsController {

    private final ChargingTransactionsService chargingTransactionsService;

    @GetMapping
    public R<List<ChargingTransactions>> getChargingTransactions(){
        return R.ok(chargingTransactionsService.list());
    }

}
